const mongoose = require('mongoose');

const articleSchema = new mongoose.Schema({
	id:String,//文章ID
	title:String,//文章标题
	description:String,//文章描述
	keywords:String,//关键字
	time:String,//发布时间,
	views:Number,//浏览数
	messages:Number,//留言数
	textContent:String,//文章内容
	htmlContent:String,//html内容
	imgUrl:String,//文章配图
	imgAlt:String,//图片alt
	imgTitle:String,//图片title
});

module.exports = mongoose.model('article',articleSchema);